﻿using SqlSugar;

namespace memo.entity.PO;


///<summary>
/// 用户类
/// </summary>
[SugarTable("User")]
public class User
{

    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    public int? Id { get; set; }

    [SugarColumn(IsNullable = true)]
    public string? Name { get; set; }

    [SugarColumn(IsNullable = true)]
    public string? Password { get; set; }

    public int? Gender { get; set; }


    // 重写ToString方法
    public override string ToString()
    {
        return $"Id: {Id}, Name: {Name}, Password: {Password}, Gender: {Gender}";
    }

}
